<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>test</title>
    <link rel="stylesheet" th:href="@{/css/bootstrap.min.css}" href="../../static/css/bootstrap.min.css"/>
</head>
<body class="container">
<br>
<div class="panel panel-info">
    <div class="panel-heading">
        <h3 class="panel-title">商户</h3>
    </div>
    <div class="panel-body">
        <div th:object="${merchant}">
            <p class="text-primary">姓名：<span th:text="*{name}"></span></p>
            <p class="text-primary">年龄：[[*{age}]]</p>
        </div>
    </div>
</div>
<table class="table table-striped">
    <thead>
    <tr>
        <th>#</th>
        <th>id</th>
        <th>名称</th>
        <th>价格</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="product : ${products}">
        <td th:text="${productStat.count}"></td>
        <td th:text="${product.id}"></td>
        <td th:text="${product.name}"></td>
        <td>[[${product.price}]]</td>
    </tr>
    </tbody>
</table>

</body>
</html>